/*
 *Copyright (c) 1997, 2011, Company Name. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 */
package com.vlaearn.spring.read.property.file;

import java.util.logging.Logger;

/**
 * This class read data from property file with Setter Injection.
 * 
 * @author IB1378
 * @since 12-12-2013
 * 
 * @see http://tech-read.com/2009/03/17/how_to_access_properties_file_in-spring/
 */
public class ReadDataFromPropFileSetterInjection {
	/**/
	static Logger LOG = Logger
			.getLogger(ReadDataFromPropFileSetterInjection.class.getName());
	//My Name
	private String myName;
	//My Password
	private String password;

	/**
	 * default contructor
	 */
	public ReadDataFromPropFileSetterInjection(){
	}
	
	/**
	 * Constructor with myName, password parameters.
	 * @param myName
	 * @param password
	 */
	public ReadDataFromPropFileSetterInjection(String myName, String password) {
		this.myName = myName;
		this.password = password;
	}

	/**
	 * @return myName
	 */
	public String getMyName() {
		return myName;
	}

	/**
	 * @param myName
	 */
	public void setMyName(String myName) {
		LOG.info("Setter Injection My Name");
		this.myName = myName;
	}

	/**
	 * @return password
	 */
	public String getPassword() {
		LOG.info("Setter Injection Password");
		return password;
	}

	/**
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

}
